@use './var.css';
@use './FormCreate/index.scss';
@use './theme.scss';
@use 'element-plus/theme-chalk/dark/css-vars.css';

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

.el-avatar {
  background-color: transparent !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}
/* 基础无边框样式 */
.no-border-input {
        --el-input-border-color: transparent; /* 去除默认边框 */
        --el-input-hover-border-color: transparent; /* 去除 hover 边框 */
}    
/* 下划线样式 */
.underline-input {
        border-bottom: 1px solid #ddd !important;
        border-radius: 0 !important; /* 去除圆角 */
        width: 80px;
    }
.files-hd{
    position: relative;
    padding: 5px 10px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-bottom: none;
    overflow: hidden;
}
.files-hd h4{
    margin: 0;
    color: #333;
    line-height: 30px;
}
.files-hd .opts{
    position: absolute;
    right: 10px;top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}    
/* 表格样式 */
table.gridtable {
        font-family: verdana,arial,sans-serif;
        font-size:11px;
        color:#333333;
        border-width: 1px;
        border-color: #f8f8f8;
        border-collapse: collapse;
    }
table.gridtable th {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #f8f8f8;
    }
table.gridtable td {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
    }   
table.spanFont span{
    font-size: 14px;
    color:#606266;
}         
/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
      0 0 10px var(--el-color-primary),
      0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}
